I use this code to set the frame:
[self.tableView setFrame:CGRectMake(0, 0, 240, 360)];
but it does't change the table view frame.
Please any one tell me how can I set the frame of table view..?
Home / DeveloperSection / Forums / How to change the height of table view in iOS?
[self.tableView setFrame:CGRectMake(0, 0, 240, 360)];
but it does't change the table view frame.
Please any one tell me how can I set the frame of table view..?
Tarun Kumar
05-Apr-2016If you have getting issue after setting the tableview frame then you can also use the method viewDidLayoutSubviews:.
Use your table view frame set code in the viewDidLayoutSubviews: method.
Below I have provided an example:
I hope it will resolve your table view frame set issue.